﻿/*
 *  Copyright (c) 2014-Present, Facebook, Inc.
 *  All rights reserved.
 *
 *  This source code is licensed under the BSD-style license found in the
 *  LICENSE file in the root directory of this source tree. An additional grant 
 *  of patent rights can be found in the PATENTS file in the same directory.
 */

using System.Web.Mvc;
using System.Web.Routing;

namespace React.Sample.Mvc4
{
	public class RouteConfig
	{
		public static void RegisterRoutes(RouteCollection routes)
		{
			routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
			routes.IgnoreRoute("favicon.ico");

		
            routes.MapRoute(
             "Default", // 路由名称  
             "{controller}/{action}/{id}", // 带有参数的 URL  
             new { controller = "Home", action = "Index", id = UrlParameter.Optional } // 参数默认值  
             , new string[] { "Senparc.Weixin.MP.Sample.Controllers" }
         );
        }
	}
}
